<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>EVON Global Logistics Solution</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<sj:div id="UserListDiv">
<s:form id = "UserListForm" action="userListAction">


    <s:select label="Select User" headerKey="-1"
		headerValue="Select User" list="userEmail"  />
		
		<s:if test="listUser.size() > 0">
          <div class="content">
               <table class="userTable" width="100%" border="1" align="center" cellpadding="4" cellspacing="1" class="gridtable">
              
                  <tr class="even">
                    <th>UserDetails</th>
                    <th>UserFirstName</th>
                    <th>UserMiddleName</th>
                    <th>UserLastName</th>
                  </tr>
                <s:iterator value="listUser" var="user">
              
                      <td><s:url var="detailURL" action="detailUserAction">
                          <s:param name="selectedUserId" value="#user.id"></s:param>
                          </s:url>
                          <sj:a href="#detailURL" targets="UserListDiv" formIds="UserListForm">UserDetails</sj:a></td>
                      <td><s:property  value="userDto.userFirstName" /></td>
                      <td><s:property  value="userDto.userMiddleName" /></td>
                      <td><s:property  value="userDto.userLastName" /></td>

                  </tr>
                 </s:iterator>
       </table>
          </div>
        </s:if>
	
<s:submit />

</s:form>

</sj:div>
</body>
</html>